import wx

### AniGrid: About Dialog ########################################
### Displays version number and some stats about managed files ###
### s.eichberger@gmail.com ### part of AniGrid ###################

class AGAbout(wx.Dialog):
    def __init__(self, parent, id, title):
        wx.Dialog.__init__(self,parent, id, title)
        
        vbox = wx.BoxSizer(wx.VERTICAL)
        stline = wx.StaticText(self, 11, 'AniGrid v0')

        vbox.Add(stline, 1, wx.ALIGN_CENTER|wx.TOP, 40)
        line = wx.StaticLine(self, -1, (25, 50), (300,1))
        vbox.Add(line,1,wx.EXPAND)

        stline = wx.StaticText(self, 11, 'can do shit')
        vbox.Add(stline, 1, wx.ALIGN_CENTER, 20)
        sizer =  self.CreateButtonSizer(wx.OK)
        vbox.Add(sizer, 0, wx.ALIGN_CENTER)
        self.SetSizer(vbox)
        self.Bind(wx.EVT_BUTTON, self.onOK, id=wx.ID_OK)

    def onOK(self, event):
        self.Close()

# AGAbout end


# AGDelete - universial dialog for delete (yes|no) question

class AGDelete(wx.Dialog):
    def __init__(self, parent, id, title):
        wx.Dialog.__init__(self,parent, id,title)

        vbox = wx.BoxSizer(wx.VERTICAL)
        self.text = wx.StaticText(self, -1, '')

        vbox.Add(self.text, 1, wx.ALIGN_CENTER|wx.TOP, 45)
        sizer =  self.CreateButtonSizer(wx.YES|wx.NO)
        vbox.Add(sizer, 0, wx.ALIGN_CENTER)
        self.SetSizer(vbox)
        self.Bind(wx.EVT_BUTTON, self.OnNo, id=wx.ID_NO)

    def OnNo(self, event):
        self.Close()

# AGDelete end
